

FROM node:18.1-alpine

WORKDIR /build


# 复制整个项目并构建
COPY ./ ./

FROM nginx
RUN mkdir /app
COPY --from=0 /build/dist /app
COPY --from=0 /build/nginx.conf /etc/nginx/nginx.conf

EXPOSE 80
